package uk.ac.ebi.pride.tools.pap.rest.handler;

import uk.ac.ebi.pride.tools.pap.rest.PapRestRequestHandler;
import uk.ac.ebi.pride.tools.pap.rest.DefaultRestHandler;
import uk.ac.ebi.pride.tools.pap.AccessionProvider;
import org.apache.log4j.Logger;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import java.io.IOException;

/**
 * @author Florian Reisinger
 *         Date: 19-Feb-2009
 * @since 0.1
 */
public class GetPrideMzmlAccessionsRestHandler implements PapRestRequestHandler {
    private static final Logger log = Logger.getLogger(GetPrideMzmlAccessionsRestHandler.class);

    public void executeRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        log.debug("Executing request for PRIDE mzML accessions.");
        DefaultRestHandler.executeRequest(request, response, AccessionProvider.AcCase.MZML);
    }

}
